<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			@keyframes myfirst {
				from {
					background: red;
				}
				to {
					background: yellow;
				}
			}
			
			@-webkit-keyframes myfirst
			/* Safari 与 Chrome */
			
			{
				from {
					background: red;
				}
				to {
					background: yellow;
				}
			}
			
			div {
				height: 200px;
				width: 200px;
				animation: myfirst 5s;
				-webkit-animation: myfirst 5s;
				/* Safari 与 Chrome */
			}
		</style>

	</head>

	<body>
		<div>
			动画
		</div>
	</body>

</html>